import {GET_USERIFON} from '../constant' 
const init={
    info:null,
    isUserInfo:false
}
export  function userInfo (prestate=init,action){
    switch(action.type){
        case GET_USERIFON:
            console.log('用户名',{...action.data})
            return {...action.data}
        default :
            return  prestate
    }
}